﻿@model zichan.Entity.AsseteClassify
@{
    ViewBag.Title = "编辑资产分类";
}

@section Pagetitle{
    @AdminCommon.PageTitle("资产分类管理", "编辑")
}


@using (Html.BeginForm("Edit", "AsseteClass", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <div class="form-body">
        @Html.AntiForgeryToken()
        @if (Model.Id != 1)
        {<div class="form-group">
            <label class="col-md-3 control-label xh">资产名称:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Name, new { @class = "form-control input-large" })
                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Name)
                </span>
            </div>
        </div>}
        else
        {
            <div class="form-group">
                <label class="col-md-3 control-label">资产名称:</label>
                <div class="col-md-9">
                    <span>
                       服务器
                    </span>
                    @Html.HiddenFor(o=>o.Name)
                </div>
            </div>
        }
        <div class="form-group">
            <label class="col-md-3 control-label">序号:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.SortId, new { @class = "form-control input-small" })

                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.SortId)
                </span>
            </div>
        </div>
       @if (Model.Id != 1)
       {<div class="form-group ">
            <label class="col-md-3 control-label">资产标识:</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Identity, new { @class = "form-control input-large" })
                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Identity)
                </span>
            </div>
        </div>}
       else
       {
        <div class="form-group ">
            <label class="col-md-3 control-label">资产标识(品牌):</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.Identity, new { @class = "form-control input-large" })
                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.Identity)
                </span>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-md-3 control-label">资产标识(组装):</label>
            <div class="col-md-9">
                @Html.TextBoxFor(o => o.SubIdentity, new { @class = "form-control input-large" })
                <span class="help-block">
                    @Html.ValidationMessageFor(o => o.SubIdentity)
                </span>
            </div>
        </div>
       }

        <div class="form-actions">
            <div class="row">
                <div class="col-md-offset-3 col-md-9">
                    <button type="submit" class="btn green">提交</button>
                    <a href="/AsseteClass/Index" class="btn default">返回</a>
                </div>
            </div>
        </div>
    </div>
}


@section footer{
    @Scripts.Render("~/bundles/jqueryval")
}

